//package com.xiaoshi2022.kamen_rider_weapon_craft.worldgen.biome.surface;
//
//import com.xiaoshi2022.kamen_rider_weapon_craft.worldgen.biome.ModBiomes;
//import net.minecraft.world.level.block.Block;
//import net.minecraft.world.level.block.Blocks;
//import net.minecraft.world.level.levelgen.SurfaceRules;
//
//public class ModSurfaceRules {
//    private static final SurfaceRules.RuleSource DIRT = makeStateRule(Blocks.DIRT);
//    private static final SurfaceRules.RuleSource GRASS_BLOCK = makeStateRule(Blocks.GRASS_BLOCK);
//
//
//    public static SurfaceRules.RuleSource makeRules() {
//        SurfaceRules.ConditionSource isAtOrAboveWaterLevel = SurfaceRules.waterBlockCheck(-1, 0);
//
//        SurfaceRules.RuleSource grassSurface = SurfaceRules.sequence(SurfaceRules.ifTrue(isAtOrAboveWaterLevel, GRASS_BLOCK), DIRT);
//
//        return SurfaceRules.sequence(
//                SurfaceRules.sequence(SurfaceRules.ifTrue(SurfaceRules.isBiome(ModBiomes.HELHEIM_BIOME),
//
//
//                // Default to a grass and dirt surface
//                SurfaceRules.ifTrue(SurfaceRules.ON_FLOOR, grassSurface)
//        )));
//    }
//
//    private static SurfaceRules.RuleSource makeStateRule(Block block) {
//        return SurfaceRules.state(block.defaultBlockState());
//    }
//}
